#pragma once

/*
Utility class to supply variously bound random numbers
*/
class Randomizer
{
public:
	Randomizer(void);
	~Randomizer(void);

	/*
	Generates new random number -1 <= x <= 1
	*/
	double NextDouble();

	/*
	Generates new random number 0 <= x <= 1
	*/
	double NextPositiveDouble();

	/*
	Same as rand()
	*/
	int NextInt();

	/*
	Generates new random number begin <= x <= end
	*/
	int NextInt(int begin, int end);

	/*
	Generates new random number SHORT_MIN <= x <= SHORT_MAX
	*/
	short NextShort();
};
